
import { useRef, useState } from "react";
import { ModalForm, ProFormText, ProFormTextArea } from "@ant-design/pro-form";
import type { FormInstance } from "antd";
import { TableListItem } from "../data.d"
import { typeLabel } from "@/untils/label"
import { Steps } from 'antd';




type ModelDataType = {
    isModalVisible: boolean;
    title: string;
    onCancel: () => void;
    rowData: TableListItem;
}


export default (props: ModelDataType) => {
    const { title, isModalVisible, onCancel } = props
    const formRef = useRef<FormInstance>();
    const [current, setCurrent] = useState(0);
    const onVisibleChange = () => {

    }


    const next = () => {
        setCurrent(current + 1);
    };

    const prev = () => {
        setCurrent(current - 1);
    };
    return <>
        <ModalForm
            title={typeLabel.get(title)}
            formRef={formRef}
            visible={isModalVisible}
            modalProps={{
                onCancel,
            }}
            onVisibleChange={onVisibleChange}
            onFinish={async () => {
                return true
            }}
        >
123

        </ModalForm>
    </>
}